<!DOCTYPE html>
<html lang="zh">

<head>
	<meta charset="UTF-8">
	<link href="https://cn.vuejs.org/logo.svg" rel="icon">
	<title>VUE 3</title>
	<style>
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
		}
	</style>
</head>

<body>
	<div id="app"></div>
	<script src="./src/main.ts" type="module"></script>
	<script type="module">
		if (window.electronAPI) {
			//修改 BrowserWindow.webPreferences的nodeIntegration为true且contextIsolation为false后可用
			const fs = require('fs');
			console.log(fs);
		}
	</script>
</body>

</html>